<template>
    <div class="delegation-list">
      <div 
        v-for="delegation in delegations" 
        :key="delegation.id"
        class="delegation-card"
      >
        <div class="card-header">
          <span class="tag">{{ delegation.type }}</span>
          <span class="time">{{ delegation.time }}</span>
        </div>
        <div class="card-content">
          <div class="locations">
            <div class="location">{{ delegation.fromLocation }}</div>
            <div class="location">{{ delegation.toLocation }}</div>
          </div>
          <div class="price">¥{{ delegation.price }}</div>
        </div>
      </div>
    </div>
  </template>
  
  <script setup>
  import { ref } from 'vue'
  
  const delegations = ref([
    {
      id: 1,
      type: '快递',
      time: '10-15 20:39发布',
      fromLocation: '榕园12栋',
      toLocation: '海琴六号',
      price: 5
    },
    // More delegation items...
  ])
  </script>
  
  <style scoped>
  .delegation-list {
    padding: 1rem;
    background: #ffffff;
    height: 100%;
    overflow-y: auto;
  }
  
  
  .delegation-card {
    background: linear-gradient(to right, #e6f0f9, #e8f6f6);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #000000;
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  
  .tag {
    background: #888;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  .time {
    color: #666;
  }
  
  .locations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .location {
    color: #000000;
  }
  
  .price {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 500;
    margin-top: 0.5rem;
  }
  </style>
  
  